package com.jjty.dataGenerator.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author: huangyulong
 * @createTime: 2023-04-04- 15:23
 * @Description:
 */
@Configuration
public class
WebInterceptor implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {

        /**
         * 后台
         */
        registry.addInterceptor(new LoginInterceptor())
                .addPathPatterns("/**")
                .excludePathPatterns("/login/**","/bg/**","/api/**","/akq/**","/openapi/**","/data/**")
                .order(2);



    }
}
